<?php


namespace app\admin\service;
use app\admin\model\Menu as Model;
use support\bootstrap\Cache;

/**
 * 菜单服务类
 */
class Menu
{
    public function getlist()
    {
        $list = Model::query()->orderByDesc('weigh')->get();
        return $list;
    }

    public function getModelQuery() {
        return Model::query();
    }

    public function deleteCache() {
        Cache::instance()->deleteAll();
    }
}
